﻿<UserControl xmlns:ParseControls="clr-namespace:ParseControls;assembly=ParseControls" 
			 x:Class="ParseOnlineAdmin.ParseItemDetails"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 xmlns:local="clr-namespace:ParseOnlineAdmin"
			 mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300">

	<UserControl.Resources>

		<local:ParseObjectToStringConverter x:Key="valueConverter" />
		<ParseControls:DateFormatConverter x:Key="dateConverter" />

		<SolidColorBrush x:Key="transp" Color="Transparent"  Opacity="0" />
		<SolidColorBrush x:Key="snow" Color="Transparent" Opacity="0.0001" />
		<SolidColorBrush  x:Key="min"  Color="White" Opacity="0.05" />
		<SolidColorBrush  x:Key="light"  Color="White" Opacity="0.1" />
		<SolidColorBrush x:Key="over" Color="White"  Opacity="0.3" />
		<SolidColorBrush x:Key="selected"  Color="White"  Opacity="0.5" />

		<LinearGradientBrush x:Key="_redBrush" StartPoint="0,0" EndPoint="1,0">
			<GradientStop Color="#E32224" Offset="0.2" />
			<GradientStop Color="#AC1417" Offset="0.8" />
		</LinearGradientBrush>

		<!-- FocusVisual -->
		<Style x:Key="SimpleFocusVisual">
			<Setter Property="Control.Template">
				<Setter.Value>
					<ControlTemplate>
						<Border
						BorderBrush="Transparent"
						BorderThickness="0"
						SnapsToDevicePixels="true">
							<!--
							<Border.Effect>
							<DropShadowEffect ShadowDepth="0"
							Color="Gray"
							BlurRadius="5" />
							</Border.Effect>
						-->
						</Border>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="listboxitem" TargetType="ListBoxItem">
			<Setter Property="Opacity" Value="0" />
			<Setter Property="RenderTransformOrigin" Value="0.5,0.5" />
			<Setter Property="RenderTransform">
				<Setter.Value>
					<TranslateTransform Y="-10" />
				</Setter.Value>
			</Setter>
			<Setter
			Property="FocusVisualStyle"
			Value="{StaticResource SimpleFocusVisual}" />
			<Setter Property="BorderBrush" Value="#fff" />
			<Setter Property="BorderThickness" Value="0,0,0,1" />
			<Setter Property="Foreground" Value="#333" />
			<Setter Property="Background" Value="{StaticResource light}" />
			<Setter Property="HorizontalContentAlignment" Value="Stretch" />
			<Setter Property="HorizontalAlignment" Value="Stretch" />
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="ListBoxItem">
						<Grid Background="{TemplateBinding Background}"
						SnapsToDevicePixels="true">
							<Rectangle x:Name="rectBg"
							SnapsToDevicePixels="true" />
							<Border x:Name="line"
							Background="{TemplateBinding Background}"
							BorderBrush="{TemplateBinding BorderBrush}"
							BorderThickness="{TemplateBinding BorderThickness}"
							SnapsToDevicePixels="true" />

							<ContentPresenter Margin="0"
							HorizontalAlignment="Stretch"
							Content="{TemplateBinding Content}"
							ContentTemplate="{TemplateBinding ContentTemplate}"
							SnapsToDevicePixels="true" />
						</Grid>
						<ControlTemplate.Triggers>
							<EventTrigger RoutedEvent="Loaded">
								<BeginStoryboard>
									<Storyboard Storyboard.DesiredFrameRate="30">
										<DoubleAnimation AccelerationRatio="0.3" DecelerationRatio="0.7"
										Duration="0:0:0.7" From="0"
										Storyboard.TargetProperty="Opacity" To="1" />
										<DoubleAnimation AccelerationRatio="0.3" DecelerationRatio="0.7"
										Duration="0:0:0.7" From="-10"
										Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.Y)"
										To="0" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
							<Trigger Property="IsSelected" Value="True">
								<Setter Property="Opacity" TargetName="line" Value="1" />
								<Setter Property="Fill" TargetName="rectBg" Value="#007ACC" />
								<Setter Property="TextBlock.Foreground" Value="#fff" />
							</Trigger>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="False" />
									<Condition Property="IsMouseOver" Value="True" />
								</MultiTrigger.Conditions>
								<Setter Property="Opacity" TargetName="line" Value="1" />
								<Setter Property="BorderThickness" TargetName="line" Value="0,0,0,1" />
								<Setter Property="BorderBrush" TargetName="line" Value="#007ACC" />
								<Setter Property="Cursor" Value="Hand" />
								<Setter Property="Fill" TargetName="rectBg" Value="#fff" />
								<Setter Property="Opacity" TargetName="rectBg" Value="0.5" />
							</MultiTrigger>
							<MultiTrigger>
								<MultiTrigger.Conditions>
									<Condition Property="IsSelected" Value="True" />
									<Condition Property="IsMouseOver" Value="True" />
								</MultiTrigger.Conditions>
								<Setter Property="Opacity" TargetName="line" Value="1" />
							</MultiTrigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
			<Style.Triggers>
				<Trigger Property="IsEnabled" Value="false">
					<Setter Property="Background" Value="Silver" />
					<Setter Property="Foreground" Value="White" />
				</Trigger>
			</Style.Triggers>
		</Style>
		<Style x:Key="listbox" TargetType="{x:Type ListBox}">
			<Setter  Property="BorderThickness"  Value="0" />
			<Setter  Property="Margin"  Value="0" />
			<Setter  Property="Padding"  Value="0" />
			<Setter Property="Background"  Value="{StaticResource snow}" />
		</Style>
		<Style x:Key="textbox" TargetType="{x:Type TextBox}">
			<Setter Property="Background" Value="{StaticResource light}" />
			<Setter Property="BorderThickness" Value="0" />
			<Setter Property="VerticalAlignment" Value="Center" />
			<Setter Property="Padding" Value="3" />
			<Setter Property="Foreground" Value="#eee" />
			<Style.Triggers>
				<Trigger Property="IsMouseOver" Value="true">
					<Setter Property="Background" Value="{StaticResource over}" />
					<Setter  Property="BorderThickness"  Value="0" />
				</Trigger>
				<Trigger  Property="IsFocused" Value="true">
					<Setter  Property="Background" Value="{StaticResource selected}" />
					<Setter  Property="BorderThickness" Value="0" />
				</Trigger>
			</Style.Triggers>
		</Style>
		<Style x:Key="titlebox" TargetType="{x:Type TextBox}">
			<Setter Property="Background" Value="{StaticResource transp}" />
			<Setter Property="Foreground" Value="#fff" />
			<Setter Property="FontWeight" Value="Bold" />
			<Setter Property="FontSize" Value="16" />
			<Setter Property="BorderThickness" Value="0" />
			<Setter Property="VerticalAlignment" Value="Center" />
			<Setter Property="Padding" Value="5,3" />
			<Style.Triggers>
				<Trigger Property="IsMouseOver" Value="true">
					<Setter Property="Background" Value="{StaticResource min}" />
					<Setter  Property="BorderThickness"  Value="0" />
				</Trigger>
				<Trigger  Property="IsFocused" Value="true">
					<Setter  Property="Background" Value="{StaticResource light}" />
					<Setter  Property="BorderThickness" Value="0" />
				</Trigger>
			</Style.Triggers>
		</Style>
		<Style x:Key="button" TargetType="{x:Type Button}">
			<Setter Property="Background" Value="{StaticResource snow}" />
			<Setter Property="BorderThickness" Value="0" />
			<Setter Property="Padding" Value="3" />
			<Style.Triggers>
				<Trigger Property="IsMouseOver" Value="true">
					<Setter Property="Background" Value="{StaticResource over}" />
					<Setter  Property="BorderThickness"  Value="0" />
				</Trigger>
				<Trigger  Property="IsFocused" Value="true">
					<Setter  Property="Background" Value="{StaticResource selected}" />
					<Setter  Property="BorderThickness" Value="0" />
				</Trigger>
			</Style.Triggers>
		</Style>

		<!-- Shadow -->
		<DropShadowEffect x:Key="shadowDark" BlurRadius="5" 
					  ShadowDepth="3" Color="#555555" 
				Direction="270" RenderingBias="Performance" />
	</UserControl.Resources>

	<Grid>


		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="Auto"/>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>

		<Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0" SnapsToDevicePixels="True"
				BorderThickness="0,0,0,1" Effect="{StaticResource shadowDark}">
			<Border.BorderBrush>
				<VisualBrush>
					<VisualBrush.Visual>
						<Rectangle Stroke="Gray" StrokeDashArray="5 2" StrokeThickness="1"
							Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
							Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}"/>
					</VisualBrush.Visual>
				</VisualBrush>
			</Border.BorderBrush>
		</Border>

		<TextBox Text="{Binding Path=SelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged,
			Converter={StaticResource valueConverter}, ConverterParameter=Title}" 
				 Margin="5,5,50,5" Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="0"
				 Style="{StaticResource titlebox}" />

		<ParseControls:FwCheckBox x:Name="toggleStart" IsChecked="{Binding Path=SelectedItem.IsStar}"
						Padding="0" Height="30" Width="30" Grid.Column="1" Margin="0,0,5,0" 
						  CheckBoxVisualType="Star"        
					VerticalAlignment="Center"  HorizontalAlignment="Right">
	    </ParseControls:FwCheckBox>

		<ParseControls:FwToggleButton x:Name="tglCalendar" Margin="5" Width="30" Height="30" Grid.Column="0" Grid.Row="1" >
			<ParseControls:FwToggleButton.Content>
				<Viewbox>
					<Canvas Width="76.0106" Height="76.0106" Margin="-15" Clip="F1 M 0,0L 76.0106,0L 76.0106,76.0106L 0,76.0106L 0,0">
						<Path Width="40.0056" Height="39.0058" Canvas.Left="18.0025" Canvas.Top="18.0023" Stretch="Fill" 
							  Fill="#FFffffff" Data="F1 M 29.7541,35.505L 26.0036,38.2554L 26.0036,32.7546L 29.7541,35.505 Z M 30.2543,42.506L 34.0047,39.7556L 34.0047,45.2564L 30.2543,42.506 Z M 39.0054,40.0056L 45.0062,40.0056L 45.0062,45.0063L 39.0054,45.0063L 39.0054,40.0056 Z M 47.0065,40.0056L 53.0074,40.0056L 53.0074,45.0063L 47.0065,45.0063L 47.0065,40.0056 Z M 23.0032,47.0066L 29.004,47.0066L 29.004,52.0073L 23.0032,52.0073L 23.0032,47.0066 Z M 31.0043,47.0066L 37.0052,47.0066L 37.0052,52.0073L 31.0043,52.0073L 31.0043,47.0066 Z M 39.0054,47.0066L 45.0063,47.0066L 45.0063,52.0073L 39.0054,52.0073L 39.0054,47.0066 Z M 47.0065,47.0066L 53.0074,47.0066L 53.0074,52.0073L 47.0065,52.0073L 47.0065,47.0066 Z M 18.0025,57.0081L 18.0025,23.0032L 23.0032,23.0032L 23.0032,20.0028C 23.0033,18.898 23.8988,18.0026 25.0035,18.0026L 29.004,18.0026C 30.1087,18.0026 31.0042,18.898 31.0043,20.0026L 31.0043,23.0032L 45.0063,23.0032L 45.0062,20.0026C 45.0062,18.8978 45.9018,18.0023 47.0065,18.0023L 51.0071,18.0023C 52.1118,18.0023 53.0074,18.8978 53.0074,20.0026L 53.0074,23.0032L 58.0081,23.0032L 58.0081,57.0081L 18.0025,57.0081 Z M 21.0029,54.0077L 55.0076,54.0077L 55.0076,31.0044L 21.0029,31.0044L 21.0029,54.0077 Z M 23.0032,40.0056L 29.004,40.0056L 29.004,45.0063L 23.0032,45.0063L 23.0032,40.0056 Z M 31.0043,33.0048L 37.0051,33.0048L 37.0051,38.0055L 31.0043,38.0055L 31.0043,33.0048 Z M 39.0054,33.0048L 45.0062,33.0048L 45.0062,38.0055L 39.0054,38.0055L 39.0054,33.0048 Z M 47.0065,33.0048L 53.0073,33.0048L 53.0073,38.0055L 47.0065,38.0055L 47.0065,33.0048 Z M 48.5067,20.0029C 47.6781,20.0029 47.0065,20.6746 47.0065,21.5031L 47.0065,24.5035C 47.0065,25.3321 47.6781,26.0037 48.5067,26.0037L 49.5068,26.0037C 50.3354,26.0037 51.007,25.3321 51.007,24.5035L 51.007,21.5031C 51.007,20.6746 50.3354,20.0029 49.5068,20.0029L 48.5067,20.0029 Z M 26.5037,20.0029C 25.6751,20.0029 25.0035,20.6745 25.0035,21.5031L 25.0035,24.5035C 25.0035,25.332 25.6751,26.0037 26.5037,26.0037L 27.5038,26.0037C 28.3324,26.0037 29.004,25.332 29.004,24.5035L 29.004,21.5031C 29.004,20.6745 28.3324,20.0029 27.5038,20.0029L 26.5037,20.0029 Z M 32.0045,34.0048L 32.0045,37.0052L 36.005,37.0052L 36.005,34.0048L 32.0045,34.0048 Z M 40.0056,34.0048L 40.0056,37.0052L 44.0061,37.0052L 44.0061,34.0048L 40.0056,34.0048 Z M 48.0067,34.0048L 48.0067,37.0052L 52.0072,37.0052L 52.0072,34.0048L 48.0067,34.0048 Z M 24.0033,41.0057L 24.0033,44.0061L 28.0039,44.0061L 28.0039,41.0057L 24.0033,41.0057 Z "/>
					</Canvas>
				</Viewbox>
			</ParseControls:FwToggleButton.Content>
		</ParseControls:FwToggleButton>
		<TextBox x:Name="txtDueTo" Text="{Binding Path=SelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged,
			Converter={StaticResource valueConverter}, ConverterParameter=DueTo}" 
				 Margin="5" Grid.Column="1" Grid.Row="1"  Style="{StaticResource textbox}" />
		<Popup SnapsToDevicePixels="True" Placement="Bottom" PopupAnimation="Fade" StaysOpen="False" 
									PlacementTarget="{Binding ElementName=txtDueTo}" IsOpen="{Binding ElementName=tglCalendar, Path=IsChecked}"
									   AllowsTransparency="True" Focusable="False" >
			<Border SnapsToDevicePixels="True"
									Background="#555" BorderBrush="#999" BorderThickness="1"  >
				<Calendar Margin="5" Background="Transparent" Foreground="#fff" BorderThickness="0" BorderBrush="Transparent"
						  SelectedDate="{Binding ElementName=txtDueTo, Path=Text, 
															Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
				</Calendar>
			</Border>
		</Popup>
		<Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="1"
				BorderThickness="0,0,0,1" >
			<Border.BorderBrush>
				<VisualBrush>
					<VisualBrush.Visual>
						<Rectangle Stroke="Gray" StrokeDashArray="4 2" StrokeThickness="1"
							Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
							Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}"/>
					</VisualBrush.Visual>
				</VisualBrush>
			</Border.BorderBrush>
		</Border>

		<ParseControls:FwToggleButton x:Name="tglReminder" Margin="5" Width="30" Height="30" Grid.Column="0" Grid.Row="2" >
			<ParseControls:FwToggleButton.Content>
				<Viewbox>
					<Canvas Width="76" Height="76" Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0" Margin="-15">
						<Path Width="34.8333" Height="34.8333" Canvas.Left="20.5833" Canvas.Top="20.5833" 
							  Stretch="Fill" Fill="#FFffffff" Data="F1 M 38,23.75C 46.7445,23.75 53.8333,30.8388 53.8333,39.5833C 53.8333,48.3278 46.7445,55.4167 38,55.4167C 29.2555,55.4167 22.1667,48.3278 22.1667,39.5833C 22.1667,30.8388 29.2555,23.75 38,23.75 Z M 38,27.7083C 31.4416,27.7083 26.125,33.025 26.125,39.5833C 26.125,46.1417 31.4416,51.4583 38,51.4583C 44.5584,51.4583 49.875,46.1417 49.875,39.5833C 49.875,33.025 44.5584,27.7083 38,27.7083 Z M 37.6042,30.875C 38.4786,30.875 39.1875,31.5839 39.1875,32.4583L 39.1875,38.3959L 45.125,38.3959C 45.9994,38.3959 46.7083,39.1047 46.7083,39.9792L 46.7083,40.7708C 46.7083,41.6453 45.9994,42.3542 45.125,42.3542L 38,42.3542C 37.2083,42.2222 36.4167,42.0903 35.9548,41.6285C 35.493,41.1667 35.3611,40.375 35.2292,39.5833L 35.2292,32.4583C 35.2292,31.5839 35.938,30.875 36.8125,30.875L 37.6042,30.875 Z M 49.0833,20.5833C 52.5811,20.5833 55.4167,23.4189 55.4167,26.9167C 55.4167,28.4256 54.889,29.8113 54.008,30.8993C 51.9429,27.1006 48.5651,24.1189 44.4835,22.5632C 45.6379,21.3439 47.2718,20.5833 49.0833,20.5833 Z M 26.9167,20.5834C 28.7282,20.5834 30.3621,21.3439 31.5165,22.5632C 27.4349,24.1189 24.0571,27.1006 21.992,30.8993C 21.111,29.8113 20.5833,28.4256 20.5833,26.9167C 20.5833,23.4189 23.4189,20.5834 26.9167,20.5834 Z "/>
					</Canvas>
				</Viewbox>
			</ParseControls:FwToggleButton.Content>
		</ParseControls:FwToggleButton>
		<TextBox x:Name="txtReminder" Text="{Binding Path=SelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged,
			Converter={StaticResource valueConverter}, ConverterParameter=Reminder}"   
				 Margin="5" Grid.Column="1" Grid.Row="2"  Style="{StaticResource textbox}" />
		<Popup SnapsToDevicePixels="True" Placement="Bottom" PopupAnimation="Fade" StaysOpen="False" 
									PlacementTarget="{Binding ElementName=txtReminder}" IsOpen="{Binding ElementName=tglReminder, Path=IsChecked}"
									   AllowsTransparency="True" Focusable="False" >
			<Border SnapsToDevicePixels="True"
									Background="#555" BorderBrush="#999" BorderThickness="1"  >
				<Calendar Margin="5" Background="Transparent" Foreground="#fff" BorderThickness="0" BorderBrush="Transparent"
						  SelectedDate="{Binding ElementName=txtReminder, Path=Text, 
															Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
				</Calendar>
			</Border>
		</Popup>
		<Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="2"
				BorderThickness="0,0,0,1" >
			<Border.BorderBrush>
				<VisualBrush>
					<VisualBrush.Visual>
						<Rectangle Stroke="Gray" StrokeDashArray="4 2" StrokeThickness="1"
							Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
							Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}"/>
					</VisualBrush.Visual>
				</VisualBrush>
			</Border.BorderBrush>
		</Border>

		<ParseControls:FwButton Margin="5" Width="30" Height="30" Grid.Column="0" Grid.Row="3" >
			<ParseControls:FwButton.Content>
				<Viewbox>
					<Canvas Width="76" Height="76" Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0" Margin="-15">
						<Path Width="48.5597" Height="28.5" Canvas.Left="14.7735" Canvas.Top="23.75" 
							  Stretch="Fill" Fill="#FFffffff" Data="F1 M 30.4792,27.3126L 56.6041,27.3126C 57.9158,27.3126 58.9791,27.9801 58.9791,29.2918C 58.9791,30.6034 57.9158,31.2709 56.6041,31.2709L 30.4792,31.2709C 29.1675,31.2709 28.1042,30.6034 28.1042,29.2917C 28.1042,27.98 29.1675,27.3126 30.4792,27.3126 Z M 30.4791,36.8125L 60.9582,36.8126C 62.2699,36.8126 63.3332,37.4801 63.3332,38.7918C 63.3332,40.1035 61.8827,40.6887 60.571,40.6887L 30.092,40.6886C 28.7803,40.6886 28.1041,40.1034 28.1041,38.7917C 28.1041,37.48 29.1675,36.8125 30.4791,36.8125 Z M 30.4792,46.3125L 53.0415,46.3126C 54.3532,46.3126 55.4165,46.9801 55.4165,48.2917C 55.4165,49.6034 54.3532,50.2709 53.0415,50.2709L 30.4792,50.2709C 29.1675,50.2709 28.1042,49.6034 28.1042,48.2917C 28.1042,46.98 29.1675,46.3125 30.4792,46.3125 Z M 16.6122,46.3508L 19.3192,48.7386L 24.1458,42.75L 26.3037,45.1378L 20.2769,52.25L 18.6042,52.25L 14.7735,48.4866L 14.7735,46.3508L 16.6122,46.3508 Z M 16.8293,36.8508L 19.5363,39.2386L 24.3629,33.25L 26.5208,35.6378L 20.494,42.75L 18.8213,42.75L 14.9906,38.9866L 14.9906,36.8508L 16.8293,36.8508 Z M 16.8293,27.3508L 19.5363,29.7385L 24.3629,23.75L 26.5208,26.1378L 20.494,33.25L 18.8213,33.25L 14.9906,29.4866L 14.9906,27.3508L 16.8293,27.3508 Z "/>
					</Canvas>
				</Viewbox>
			</ParseControls:FwButton.Content>
		</ParseControls:FwButton>
		<TextBox Text="{Binding Path=SelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged,
			Converter={StaticResource valueConverter}, ConverterParameter=Category}" 
				 Margin="5" Grid.Column="1" Grid.Row="3"  Style="{StaticResource textbox}" />
		<Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="3"
				BorderThickness="0,0,0,1" >
			<Border.BorderBrush>
				<VisualBrush>
					<VisualBrush.Visual>
						<Rectangle Stroke="Gray" StrokeDashArray="4 2" StrokeThickness="1"
							Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
							Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}"/>
					</VisualBrush.Visual>
				</VisualBrush>
			</Border.BorderBrush>
		</Border>

		<TextBlock Text="Notizen"  Margin="10,5,0,0"
				   Foreground="#fff" FontWeight="Bold"
				   Grid.Column="0"  Grid.ColumnSpan="2" Grid.Row="4" />
		<TextBox Text="{Binding Path=SelectedItem, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged,
			Converter={StaticResource valueConverter}, ConverterParameter=Notes}" 
				 Margin="10,5,5,10" Grid.Column="0" Grid.ColumnSpan="2"  Grid.Row="5"
				 MaxLines="12" MinHeight="90" Style="{StaticResource textbox}" />
		<Border Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="5"
				BorderThickness="0,0,0,1" >
			<Border.BorderBrush>
				<VisualBrush>
					<VisualBrush.Visual>
						<Rectangle Stroke="Gray" StrokeDashArray="4 2" StrokeThickness="1"
							Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualWidth}"
							Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type Border}}, Path=ActualHeight}"/>
					</VisualBrush.Visual>
				</VisualBrush>
			</Border.BorderBrush>
		</Border>
	</Grid>
</UserControl>
